<!--{template user/header}-->
<div style="height:30px;">&nbsp;</div>
<form action="{u site/repwd}" method="post">
<table class="modify-table" border="0" cellpadding="0" cellspacing="0">
	<thead>
		<tr><th colspan="2" class="mt-th"><strong>修改密码</strong></th></tr>
	</thead>
	<tbody>
		<tr>
			<td class="mt-td-l first">帐号：</td>
			<td class="mt-td-r first txt">$_FANWE['user']['user_name']</td>
		</tr>
		<tr>
			<td class="mt-td-l">原密码：</td>
			<td class="mt-td-r">
				<input name="yuan_pwd" type="password" id="yuan_pwd" class="text" size="20" />
			</td>
		</tr>
		<tr>
			<td class="mt-td-l">新密码：</td>
			<td class="mt-td-r">
				<input name="user_pwd" type="password" id="user_pwd" class="text" size="20" />
			</td>
		</tr>
		<tr>
			<td class="mt-td-l">确认新密码：</td>
			<td class="mt-td-r">
				<input name="user_pwd_confirm" type="password" id="user_pwd_confirm" class="text" size="20" />
			</td>
		</tr>
		<tr>
			<td class="mt-td-l">&nbsp;</td>
			<td class="mt-td-r">
				<input type="hidden" name="action" value="repwd" />
				<input type="hidden" name="form_hash" value="{FORM_HASH}" />
				<input type="submit" class="formbutton" id="user-submit" value="确 定" />
			</td>
		</tr>
	</tbody>
</table>
</form>
<div style="height:60px;">&nbsp;</div>
<script type="text/javascript">
jQuery(function($){
	tooltipTop = 0;
	
	$("#user-submit").click(function()
	{
		if(!$.checkRequire($("#yuan_pwd").val()))
		{
			$.showErr("请输入原密码");
			return false;
		}
		
		if(!$.checkRequire($("#user_pwd").val()))
		{
			$.showErr("请输入新密码");
			return false;
		}
		
		if(!$.checkRequire($("#user_pwd_confirm").val()))
		{
			$.showErr("请输入确认新密码");
			return false;
		}
		
		if($("#user_pwd").val() != $("#user_pwd_confirm").val())
		{
			$.showErr("请输入正确的确认新密码");
			return false;
		}
	});
});
</script>
<!--{template user/footer}-->